home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4834 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: cph-1.news.DK.net!dkuug!dknet!dkbbbs!ro
  2. From: ro@dkb.dk (ROLAND ERBS)
  3. Newsgroups: comp.lang.c
  4. Subject: Overlay Thunks
  5. Message-ID: <8BA43FF.10850003B1.uuout@dkb.dk>
  6. Date: Tue, 06 Feb 96 17:03:00 +0100
  7. Distribution: world
  8. Organization: Danish Key Board BBS - Copenhagen Denmark - +45 3325 5600
  9. Reply-To: ro@dkb.dk (ROLAND ERBS)
  10. X-Newsreader: PCBoard Version 15.22
  11. X-Mailer: PCBoard/UUOUT Version 1.20
  12.  
  13. Hi,
  14.  
  15.     I have a problem concerning overlays with MicroSoft Visual C version 1.0.
  16.     
  17.     I have a mycode.c file which I compile using /NM MYSEG thus putting this 
  18. module in MYSEG_TEXT segment. In the .def file I put this segment in an 
  19. overlay. Linking with the other modules give a warning:
  20.     
  21.     "mycode.obj (mycode.c) : warning L4059: far reference to overlaid segment 
  22. MYSEG_TEXT changed to OVERLAY_THUNK"
  23.  
  24.     Questions:
  25.     
  26.     The linker is warning me about a far reference from mycode.obj to 
  27. MYSEG_TEXT ? If so why ? All code in mycode.obj is in the MYSEG_TEXT segment.
  28.  
  29.     I could have understood it if there had been two different segments 
  30. involved in the mycode.obj but there is not.
  31.     
  32.     Any help will be greatly appreciated! Thanks!
  33.     
  34.     Roland
  35.     ro@dkb.dk
  36.     
  37.     Please mail me directly as well as to this group.
  38.  
  39.  
  40. ___
  41. * UniQWK #5249* Sad, sad, sad but I'm gonna be fine
  42.